package ccm.component.oscilloscope;

import ccm.component.override.JFrame;

import java.awt.*;

public class Test extends JFrame
{
    private static final String[] title=new String[]{
            "communicate",
            "middleware",
            "visualscope",
            "test"
    };

    public Test()
    {
        super(title);
        setLayout(new BorderLayout());

        OscilloscopeDataManager dataManager=new TestDataManager();
        OscilloscopeJPanel oscilloscopeJPanel;
        this.add(oscilloscopeJPanel=new OscilloscopeJPanel(),BorderLayout.CENTER);
        oscilloscopeJPanel.setDataManager(dataManager);
        addWindowListener(oscilloscopeJPanel);
        addWindowStateListener(oscilloscopeJPanel);
    }

    public static void main()
    {
        main(new String[0]);
    }
    public static void main(String[] args)
    {
        new Test().setVisible(true);
    }

    public String[] getTitleArray()
    {
        return title;
    }
    @Override
    public void restart()
    {
        dispose();
        main();
    }
}
